package xyz.fefine;

/**
 * Created by feng_ on 2016/9/8.
 * String 字段
 */
public class StringLiteral extends ASTLeaf {

    StringLiteral(Token token) {
        super(token);
    }

    @Override
    public Object eval(Enviorment enviorment) {
        return value();
    }

    public String value(){
        return token().getString();
    }
}
